<template>
 <a-spin :spinning="confirmLoading">
      <!-- 主表单区域 -->
      <a-form-model ref="form" :model="model" :rules="validatorRules">
        <a-row>
          <a-col :xs="24" :sm="12">
            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="salesmanId" label="业务员ID">
              <a-input placeholder="请输入业务员ID" v-model="model.salesmanId"/>
            </a-form-model-item>
          </a-col>
          <a-col :xs="24" :sm="12">
            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="salesman" label="业务员名称">
              <a-input placeholder="请输入业务员名称" v-model="model.salesman"/>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :xs="24" :sm="12">
            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="customerCount" label="维护客户数量">
              <a-input placeholder="请输入维护客户数量" v-model="model.customerCount"/>
            </a-form-model-item>
          </a-col>
          <a-col :xs="24" :sm="12">
            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalDebt" label="客户欠款总额">
              <a-input placeholder="请输入客户欠款总额" v-model="model.totalDebt"/>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :xs="24" :sm="12">
            <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalRefund" label="剩余退款总额">
              <a-input placeholder="请输入剩余退款总额" v-model="model.totalRefund"/>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>

      <!-- 子表单区域 -->
      <a-tabs v-model="activeKey" @change="handleChangeTabs">
      </a-tabs>
    </a-spin>
</template>

<script>

    import { FormTypes } from '@/utils/JEditableTableUtil'
    import { JEditableTableModelMixin } from '@/mixins/JEditableTableModelMixin'

    export default {
      name: 'BmsSalesmanForm',
      mixins: [JEditableTableModelMixin],
      data() {
        return {
          // 新增时子表默认添加几行空数据
          addDefaultRowNum: 1,
          model: {
          //设置默认值
           },
          validatorRules: {
          },
          refKeys: [],
          activeKey: 'FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> subTables[0]  [in template "java\\${bussiPackage}\\${entityPackage}\\vue\\modules\\${entityName}Form.vuei" at line 76, column 25]

----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${subTables[0].entityName?uncap_first}  [in template "java\\${bussiPackage}\\${entityPackage}\\vue\\modules\\${entityName}Form.vuei" at line 76, column 23]
----

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
	at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
	at freemarker.core.UnexpectedTypeException.newDescriptionBuilder(UnexpectedTypeException.java:85)
	at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:48)
	at freemarker.core.NonHashException.<init>(NonHashException.java:49)
	at freemarker.core.Dot._eval(Dot.java:48)
	at freemarker.core.Expression.eval(Expression.java:101)
	at freemarker.core.Expression.evalAndCoerceToStringOrUnsupportedMarkup(Expression.java:139)
	at freemarker.core.BuiltInForString.getTargetString(BuiltInForString.java:34)
	at freemarker.core.BuiltInForString._eval(BuiltInForString.java:29)
	at freemarker.core.Expression.eval(Expression.java:101)
	at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
	at freemarker.core.Environment.visit(Environment.java:334)
	at freemarker.core.Environment.visit(Environment.java:340)
	at freemarker.core.Environment.process(Environment.java:313)
	at freemarker.template.Template.process(Template.java:383)
	at org.jeecgframework.codegenerate.generate.util.b.a(FreemarkerHelper.java:94)
	at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:111)
	at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:82)
	at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:57)
	at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:43)
	at org.jeecgframework.codegenerate.generate.impl.CodeGenerateOneToMany.generateCodeFile(CodeGenerateOneToMany.java:181)
	at org.jeecg.JeecgOneToMainUtil.main(JeecgOneToMainUtil.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:64)
